From: Florian Müllner Date: Fri, 12 Oct 2012 10:28:36 +0000 (+0200) Subject: st-im-text: Chain up to parent first in dispose() X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~5625 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=4a92d7d1b2bfb49a9d4fa80f1ab0716c299fe3e5;p=gnome-shell.git st-im-text: Chain up to parent first in dispose() The actor's GtkIMContext is freed in dispose and reset in unrealize - as ClutterActor's dispose will unrealize the actor if necessary, chaining up to the parent after clearing the im context will result in warnings if the actor is still realized, so chain up first. https://bugzilla.gnome.org/show_bug.cgi?id=686016 --- diff --git a/src/st/st-im-text.c b/src/st/st-im-text.c index 874b841e6..6419c6661 100644 --- a/src/st/st-im-text.c +++ b/src/st/st-im-text.c @@ -68,9 +68,9 @@ st_im_text_dispose (GObject *object) { StIMTextPrivate *priv = ST_IM_TEXT (object)->priv; - g_clear_object (&priv->im_context); - G_OBJECT_CLASS (st_im_text_parent_class)->dispose (object); + + g_clear_object (&priv->im_context); } static void